<?php
$tdatatbl_admin=array();
	$tdatatbl_admin[".NumberOfChars"]=80; 
	$tdatatbl_admin[".ShortName"]="tbl_admin";
	$tdatatbl_admin[".OwnerID"]="";
	$tdatatbl_admin[".OriginalTable"]="tbl_admin";


	
//	field labels
$fieldLabelstbl_admin = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_admin["English"]=array();
	$fieldToolTipstbl_admin["English"]=array();
	$fieldLabelstbl_admin["English"]["id"] = "Id";
	$fieldToolTipstbl_admin["English"]["id"] = "";
	$fieldLabelstbl_admin["English"]["password"] = "Password";
	$fieldToolTipstbl_admin["English"]["password"] = "";
	$fieldLabelstbl_admin["English"]["username"] = "Username";
	$fieldToolTipstbl_admin["English"]["username"] = "";
	if (count($fieldToolTipstbl_admin["English"])){
		$tdatatbl_admin[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_admin[".NCSearch"]=true;

	

$tdatatbl_admin[".shortTableName"] = "tbl_admin";
$tdatatbl_admin[".nSecOptions"] = 0;
$tdatatbl_admin[".recsPerRowList"] = 1;	
$tdatatbl_admin[".tableGroupBy"] = "0";
$tdatatbl_admin[".mainTableOwnerID"] = "";
$tdatatbl_admin[".moveNext"] = 1;




$tdatatbl_admin[".showAddInPopup"] = false;

$tdatatbl_admin[".showEditInPopup"] = false;

$tdatatbl_admin[".showViewInPopup"] = false;


$tdatatbl_admin[".fieldsForRegister"] = array();
	//Begin register settings
$tdatatbl_admin[".fieldsForRegister"][] = "username";
$tdatatbl_admin[".fieldsForRegister"][] = "password";
$tdatatbl_admin[".PasswordField"] = "password";
$tdatatbl_admin[".UserNameField"] = "username";	
//End register settings	

$tdatatbl_admin[".listAjax"] = false;

	$tdatatbl_admin[".audit"] = false;

	$tdatatbl_admin[".locking"] = false;
	
$tdatatbl_admin[".listIcons"] = true;
$tdatatbl_admin[".edit"] = true;
$tdatatbl_admin[".inlineEdit"] = true;
$tdatatbl_admin[".view"] = true;

$tdatatbl_admin[".exportTo"] = true;

$tdatatbl_admin[".printFriendly"] = true;

$tdatatbl_admin[".delete"] = true;

$tdatatbl_admin[".showSimpleSearchOptions"] = false;

$tdatatbl_admin[".showSearchPanel"] = true;


$tdatatbl_admin[".isUseAjaxSuggest"] = true;

$tdatatbl_admin[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_admin[".addPageEvents"] = false;

$tdatatbl_admin[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_admin[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_admin[".isUseTimeForSearch"] = false;

$tdatatbl_admin[".isUseiBox"] = false;



$tdatatbl_admin[".isUseInlineAdd"] = true;

$tdatatbl_admin[".isUseInlineEdit"] = true;
$tdatatbl_admin[".isUseInlineJs"] = $tdatatbl_admin[".isUseInlineAdd"] || $tdatatbl_admin[".isUseInlineEdit"];

$tdatatbl_admin[".allSearchFields"] = array();

$tdatatbl_admin[".globSearchFields"][] = "password";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("password", $tdatatbl_admin[".allSearchFields"]))
{
	$tdatatbl_admin[".allSearchFields"][] = "password";	
}
$tdatatbl_admin[".globSearchFields"][] = "username";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("username", $tdatatbl_admin[".allSearchFields"]))
{
	$tdatatbl_admin[".allSearchFields"][] = "username";	
}


$tdatatbl_admin[".googleLikeFields"][] = "id";
$tdatatbl_admin[".googleLikeFields"][] = "password";
$tdatatbl_admin[".googleLikeFields"][] = "username";



$tdatatbl_admin[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_admin[".allSearchFields"])) 
{
	$tdatatbl_admin[".allSearchFields"][] = "id";	
}
$tdatatbl_admin[".advSearchFields"][] = "password";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("password", $tdatatbl_admin[".allSearchFields"])) 
{
	$tdatatbl_admin[".allSearchFields"][] = "password";	
}
$tdatatbl_admin[".advSearchFields"][] = "username";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("username", $tdatatbl_admin[".allSearchFields"])) 
{
	$tdatatbl_admin[".allSearchFields"][] = "username";	
}

$tdatatbl_admin[".isTableType"] = "list";


	

$tdatatbl_admin[".isDisplayLoading"] = true;

$tdatatbl_admin[".isResizeColumns"] = false;





$tdatatbl_admin[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_admin[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_admin[".orderindexes"] = array();

$tdatatbl_admin[".sqlHead"] = "SELECT id,  password,  username";
$tdatatbl_admin[".sqlFrom"] = "FROM tbl_admin";
$tdatatbl_admin[".sqlWhereExpr"] = "";
$tdatatbl_admin[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_admin[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_admin[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_admin[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_admin";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
										//End validation
	
				
		
				
		
		
		
			$tdatatbl_admin["id"]=$fdata;
//	password
	$fdata = array();
	$fdata["strName"] = "password";
	$fdata["ownerTable"] = "tbl_admin";
		$fdata["Label"]="Password"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "password";
	
		$fdata["FullName"]= "password";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Password");	
						
							if(count($fdata["validateAs"]) && !in_array('IsRequired',$fdata["validateAs"]['basicValidate']))
		$fdata["validateAs"]['basicValidate'][] = 'IsRequired';	
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_admin["password"]=$fdata;
//	username
	$fdata = array();
	$fdata["strName"] = "username";
	$fdata["ownerTable"] = "tbl_admin";
		$fdata["Label"]="Username"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "username";
	
		$fdata["FullName"]= "username";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
							if(count($fdata["validateAs"]) && !in_array('IsRequired',$fdata["validateAs"]['basicValidate']))
		$fdata["validateAs"]['basicValidate'][] = 'IsRequired';	
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_admin["username"]=$fdata;

	
$tables_data["tbl_admin"]=&$tdatatbl_admin;
$field_labels["tbl_admin"] = &$fieldLabelstbl_admin;
$fieldToolTips["tbl_admin"] = &$fieldToolTipstbl_admin;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_admin"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_admin"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto168=array();
$proto168["m_strHead"] = "SELECT";
$proto168["m_strFieldList"] = "id,  password,  username";
$proto168["m_strFrom"] = "FROM tbl_admin";
$proto168["m_strWhere"] = "";
$proto168["m_strOrderBy"] = "";
$proto168["m_strTail"] = "";
$proto169=array();
$proto169["m_sql"] = "";
$proto169["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto169["m_column"]=$obj;
$proto169["m_contained"] = array();
$proto169["m_strCase"] = "";
$proto169["m_havingmode"] = "0";
$proto169["m_inBrackets"] = "0";
$proto169["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto169);

$proto168["m_where"] = $obj;
$proto171=array();
$proto171["m_sql"] = "";
$proto171["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto171["m_column"]=$obj;
$proto171["m_contained"] = array();
$proto171["m_strCase"] = "";
$proto171["m_havingmode"] = "0";
$proto171["m_inBrackets"] = "0";
$proto171["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto171);

$proto168["m_having"] = $obj;
$proto168["m_fieldlist"] = array();
						$proto173=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_admin"
));

$proto173["m_expr"]=$obj;
$proto173["m_alias"] = "";
$obj = new SQLFieldListItem($proto173);

$proto168["m_fieldlist"][]=$obj;
						$proto175=array();
			$obj = new SQLField(array(
	"m_strName" => "password",
	"m_strTable" => "tbl_admin"
));

$proto175["m_expr"]=$obj;
$proto175["m_alias"] = "";
$obj = new SQLFieldListItem($proto175);

$proto168["m_fieldlist"][]=$obj;
						$proto177=array();
			$obj = new SQLField(array(
	"m_strName" => "username",
	"m_strTable" => "tbl_admin"
));

$proto177["m_expr"]=$obj;
$proto177["m_alias"] = "";
$obj = new SQLFieldListItem($proto177);

$proto168["m_fieldlist"][]=$obj;
$proto168["m_fromlist"] = array();
												$proto179=array();
$proto179["m_link"] = "SQLL_MAIN";
			$proto180=array();
$proto180["m_strName"] = "tbl_admin";
$proto180["m_columns"] = array();
$proto180["m_columns"][] = "id";
$proto180["m_columns"][] = "password";
$proto180["m_columns"][] = "username";
$obj = new SQLTable($proto180);

$proto179["m_table"] = $obj;
$proto179["m_alias"] = "";
$proto181=array();
$proto181["m_sql"] = "";
$proto181["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto181["m_column"]=$obj;
$proto181["m_contained"] = array();
$proto181["m_strCase"] = "";
$proto181["m_havingmode"] = "0";
$proto181["m_inBrackets"] = "0";
$proto181["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto181);

$proto179["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto179);

$proto168["m_fromlist"][]=$obj;
$proto168["m_groupby"] = array();
$proto168["m_orderby"] = array();
$obj = new SQLQuery($proto168);

$queryData_tbl_admin = $obj;
$tdatatbl_admin[".sqlquery"] = $queryData_tbl_admin;

$tableEvents["tbl_admin"] = new eventsBase;

?>
